<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>我的标题</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{$smarty.const.PUBLIC_PATH}/css/bootstrap.min.css">
<link rel="stylesheet" href="{$smarty.const.PUBLIC_PATH}/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="{$smarty.const.PUBLIC_PATH}/css/css.css">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://www.bootstrapcdn.com/bootstrap/2.3.1/js/bootstrap.min.js"></script>
{literal}
<script>
function Login(){
	if($("#user").val()==""){
		ShowError("用户名不能为空");
		return false;
	}
	if($("#pwd").val()==""){
		ShowError("密码不能为空");
		return false;
	}
}
function ShowError(content){
	$("#contentShow").attr("class","error");
	$("#contentShow").html(content);
}
</script>
{/literal}
</head>
<body>
<div class="navbar navbar-fixed-top navbar-inverse">
   <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
       
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="{$smarty.const.__MODULE__} ">返回首页</a></li>
			<!--
            <li><a href="#about">关于</a></li>
            <li><a href="#contact">博客</a></li>
			-->
          </ul>
		  {if $show.user.userId<1}
		  	<ul class="nav navbar-nav navbar-right ng-scope" ng-controller="user_ctrl" id="header_me">

                <li>
                    <a href="{$smarty.const.__CONTROLLER__}/userRegister" wt-tracker="Header|Menu|Goto Apply">用户注册</a>
                </li>
                
            </ul>
			{/if}
		  {if $show.user.userId>0}
		  <ul class="nav navbar-nav navbar-right ng-scope" ng-controller="user_ctrl" id="header_me">
                <li>
                    <a href="#" wt-tracker="Header|Menu|Goto Apply">用户：{$show.user.userName|default:''}</a>
                <iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></li>
                <li>
                    <a href="{$url.root}/index.php?do=user&act=seting" wt-tracker="Header|Menu|Goto Apply">User setting</a>
                </li>
				{if $show.user.adminLevel>0}
				  <li>
                    <a href="{$url.root}/index.php?do=user&act=invite" wt-tracker="Header|Menu|Goto Apply">invite</a>
                </li>
				{/if}
                <li>
                    <a href="{$url.root}/index.php?do=login&act=logout" wt-tracker="Header|Menu|Goto Apply">Logout</a>
                </li>
            </ul>
			{/if}
        </div><!--/.nav-collapse -->
      <iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></div>
    </div>

<div class="container">
<form class="form-signin" action="{$smarty.const.__ACTION__}" method="post" onsubmit="return Login()">
<div class="panel panel-default">
  <div class="panel-heading">登陆</div>
  <div class="panel-body">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">
<i class="glyphicon glyphicon-user"></i>
</span>
<input class="form-control ng-pristine ng-invalid ng-invalid-required valid" type="text" placeholder="输入用户email" name="email" id="user">
<iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></div>
</div>
<div class="form-group">
       <div class="input-group">
           <span class="input-group-addon fs_17"><i class="glyphicon glyphicon-lock"></i><iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></span>
              <input class="form-control ng-pristine ng-invalid ng-invalid-required valid" type="password" placeholder="输入密码" name="password" id="pwd">
       </div>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">登陆</button>
</div>
</div>
</form>
</div>

</html>